import request from './request.js'

export function getAllTopList () {
  return request.get('/toplist')
}

export function getSongsListInfo (id) {
  return request.get('/playlist/detail', {
    params: {
      id: id
    }
  })
}

export function getSongsDetail (id) {
  return request.get('/song/detail', {
    params: {
      ids: id
    }
  })
}

export function getSingerRank (type) {
  return request.get('/toplist/artist', {
    params: {
      type: type
    }
  })
}
